package com.hbpu.maven.spring.ioc.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@PropertySource("classpath:dog.properties")
@Component
@Data
public class Dog {
//    @Value("#{T(java.util.UUID).randomUUID().toString()}")
    private String name;
    @Value("${dog.age:80}")
    private int age;
    private String text;

    public Dog() {
        System.out.println("Dog");
    }

}
